package com.aruba.controller;

import com.aruba.feignclient.ShareServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    @Autowired
    private ShareServiceImpl shareService;

    @RequestMapping("/demo1")
    public String demo1() {
        return "sentinel1";
    }

    @RequestMapping("/demo2")
    public String demo2() {
        return "sentinel2";
    }

    @RequestMapping("/demo3")
    public String demo3() {
        return shareService.shared();
    }

    @RequestMapping("/demo4")
    public String demo4() {
        return shareService.shared();
    }

}
